package com.leetcode.链表;

public class ListNode {
    int val;
    ListNode next;
    //节点的构造函数(无参数)
    public ListNode() {

    }

    //节点的构造函数(一个参数)
    public ListNode(int x) {
        val = x;
    }

    //节点的构造函数(两个参数)
    public ListNode(int val, ListNode next) {
        this.val = val;
        this.next = next;
    }
}
